package com.yunduo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 权限实体类
 */
@TableName("y_role")
@Data
@EqualsAndHashCode(callSuper = false) //重写Equals和HashCode并且将继承自父类的属性一并添加
@Accessors(chain = true) //链式编程
public class Role {
    //序列化版本号
    private static final long serialVersionUID = 1L;

    //角色ID
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    //角色
    private String role;

    //角色名称
    private String roleName;

}
